package com.neusoft.resturant.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfig {
    // 使用@Configuration注解表示这是一个配置类
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        // 创建并返回ServerEndpointExporter对象
        return new ServerEndpointExporter();
    }
}

